package com.api.shopapi.service.impl;


import com.api.shopapi.entity.BusinessStaffRel;
import com.api.shopapi.mapper.BusinessStaffRelMapper;
import com.api.shopapi.service.BusinessStaffRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("BusinessStaffRelServiceImplOne")
public class BusinessStaffRelServiceImpl implements BusinessStaffRelService {

    @Autowired
    private BusinessStaffRelMapper businessStaffRelMapper;


    @Override
    public int insert(BusinessStaffRel businessStaffRel) {
        return businessStaffRelMapper.insert(businessStaffRel);
    }

    @Override
    public int update(BusinessStaffRel businessStaffRel) {
        return businessStaffRelMapper.update(businessStaffRel);
    }

    @Override
    public BusinessStaffRel getByBusinessStaffRelCode(String businessStaffRelCode) {
        return businessStaffRelMapper.getByBusinessStaffRelCode(businessStaffRelCode);
    }

    @Override
    public BusinessStaffRel getByStaffCode(String staffCode) {
        return businessStaffRelMapper.getByStaffCode(staffCode);
    }

    @Override
    public List<BusinessStaffRel> getListByBusinessCode(String businessCode){
        return businessStaffRelMapper.getListByBusinessCode(businessCode);
    }

    @Override
    public int deleteByBusinessStaffRelCode(String businessStaffRelCode){
        return businessStaffRelMapper.deleteByBusinessStaffRelCode(businessStaffRelCode);
    }

    @Override
    public List<BusinessStaffRel> getListByStaffCode(String staffCode){
        return businessStaffRelMapper.getListByStaffCode(staffCode);
    }

}
